#!/bin/sh
dt=`date +%Y-%m-%d`
$HIVE_HOME/bin/hive -e "LOAD DATA INPATH '/root/data/user_clicks/${dt}/*' OVERWRITE INTO TABLE mydb.user_clicks PARTITION (dt='${dt}')"
echo "over"
